package com.itheima.manager_system.domain;

public class Teacher extends Person {
    private double salary;
    private int  workingAge;
    public Teacher() {
    }

    public Teacher(int id, String name, int age, String adress,String job) {
        super(id, name, age, adress,job);
    }

    public Teacher(double salary, int workingAge) {
        this.salary = salary;
        this.workingAge = workingAge;
    }

    public Teacher(int id, String name, int age, String adress, String job, double salary, int workingAge) {
        super(id, name, age, adress, job);
        this.salary = salary;
        this.workingAge = workingAge;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public int getWorkingAge() {
        return workingAge;
    }

    public void setWorkingAge(int workingAge) {
        this.workingAge = workingAge;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "salary=" + salary +
                ", workingAge=" + workingAge +
                '}';
    }
}
